package cn.buildworld.touching.pojo.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class OsOrderProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OsOrderProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderProductIdIsNull() {
            addCriterion("order_product_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdIsNotNull() {
            addCriterion("order_product_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdEqualTo(Long value) {
            addCriterion("order_product_id =", value, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdNotEqualTo(Long value) {
            addCriterion("order_product_id <>", value, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdGreaterThan(Long value) {
            addCriterion("order_product_id >", value, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_product_id >=", value, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdLessThan(Long value) {
            addCriterion("order_product_id <", value, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdLessThanOrEqualTo(Long value) {
            addCriterion("order_product_id <=", value, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdIn(List<Long> values) {
            addCriterion("order_product_id in", values, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdNotIn(List<Long> values) {
            addCriterion("order_product_id not in", values, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdBetween(Long value1, Long value2) {
            addCriterion("order_product_id between", value1, value2, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderProductIdNotBetween(Long value1, Long value2) {
            addCriterion("order_product_id not between", value1, value2, "orderProductId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andProductNumberIsNull() {
            addCriterion("product_number is null");
            return (Criteria) this;
        }

        public Criteria andProductNumberIsNotNull() {
            addCriterion("product_number is not null");
            return (Criteria) this;
        }

        public Criteria andProductNumberEqualTo(Long value) {
            addCriterion("product_number =", value, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberNotEqualTo(Long value) {
            addCriterion("product_number <>", value, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberGreaterThan(Long value) {
            addCriterion("product_number >", value, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberGreaterThanOrEqualTo(Long value) {
            addCriterion("product_number >=", value, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberLessThan(Long value) {
            addCriterion("product_number <", value, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberLessThanOrEqualTo(Long value) {
            addCriterion("product_number <=", value, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberIn(List<Long> values) {
            addCriterion("product_number in", values, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberNotIn(List<Long> values) {
            addCriterion("product_number not in", values, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberBetween(Long value1, Long value2) {
            addCriterion("product_number between", value1, value2, "productNumber");
            return (Criteria) this;
        }

        public Criteria andProductNumberNotBetween(Long value1, Long value2) {
            addCriterion("product_number not between", value1, value2, "productNumber");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andPicImgIsNull() {
            addCriterion("pic_img is null");
            return (Criteria) this;
        }

        public Criteria andPicImgIsNotNull() {
            addCriterion("pic_img is not null");
            return (Criteria) this;
        }

        public Criteria andPicImgEqualTo(String value) {
            addCriterion("pic_img =", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgNotEqualTo(String value) {
            addCriterion("pic_img <>", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgGreaterThan(String value) {
            addCriterion("pic_img >", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgGreaterThanOrEqualTo(String value) {
            addCriterion("pic_img >=", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgLessThan(String value) {
            addCriterion("pic_img <", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgLessThanOrEqualTo(String value) {
            addCriterion("pic_img <=", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgLike(String value) {
            addCriterion("pic_img like", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgNotLike(String value) {
            addCriterion("pic_img not like", value, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgIn(List<String> values) {
            addCriterion("pic_img in", values, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgNotIn(List<String> values) {
            addCriterion("pic_img not in", values, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgBetween(String value1, String value2) {
            addCriterion("pic_img between", value1, value2, "picImg");
            return (Criteria) this;
        }

        public Criteria andPicImgNotBetween(String value1, String value2) {
            addCriterion("pic_img not between", value1, value2, "picImg");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberIsNull() {
            addCriterion("product_spec_number is null");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberIsNotNull() {
            addCriterion("product_spec_number is not null");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberEqualTo(Long value) {
            addCriterion("product_spec_number =", value, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberNotEqualTo(Long value) {
            addCriterion("product_spec_number <>", value, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberGreaterThan(Long value) {
            addCriterion("product_spec_number >", value, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberGreaterThanOrEqualTo(Long value) {
            addCriterion("product_spec_number >=", value, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberLessThan(Long value) {
            addCriterion("product_spec_number <", value, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberLessThanOrEqualTo(Long value) {
            addCriterion("product_spec_number <=", value, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberIn(List<Long> values) {
            addCriterion("product_spec_number in", values, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberNotIn(List<Long> values) {
            addCriterion("product_spec_number not in", values, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberBetween(Long value1, Long value2) {
            addCriterion("product_spec_number between", value1, value2, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNumberNotBetween(Long value1, Long value2) {
            addCriterion("product_spec_number not between", value1, value2, "productSpecNumber");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameIsNull() {
            addCriterion("product_spec_name is null");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameIsNotNull() {
            addCriterion("product_spec_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameEqualTo(String value) {
            addCriterion("product_spec_name =", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameNotEqualTo(String value) {
            addCriterion("product_spec_name <>", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameGreaterThan(String value) {
            addCriterion("product_spec_name >", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_spec_name >=", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameLessThan(String value) {
            addCriterion("product_spec_name <", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameLessThanOrEqualTo(String value) {
            addCriterion("product_spec_name <=", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameLike(String value) {
            addCriterion("product_spec_name like", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameNotLike(String value) {
            addCriterion("product_spec_name not like", value, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameIn(List<String> values) {
            addCriterion("product_spec_name in", values, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameNotIn(List<String> values) {
            addCriterion("product_spec_name not in", values, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameBetween(String value1, String value2) {
            addCriterion("product_spec_name between", value1, value2, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andProductSpecNameNotBetween(String value1, String value2) {
            addCriterion("product_spec_name not between", value1, value2, "productSpecName");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andBuyNumberIsNull() {
            addCriterion("buy_number is null");
            return (Criteria) this;
        }

        public Criteria andBuyNumberIsNotNull() {
            addCriterion("buy_number is not null");
            return (Criteria) this;
        }

        public Criteria andBuyNumberEqualTo(Integer value) {
            addCriterion("buy_number =", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberNotEqualTo(Integer value) {
            addCriterion("buy_number <>", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberGreaterThan(Integer value) {
            addCriterion("buy_number >", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("buy_number >=", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberLessThan(Integer value) {
            addCriterion("buy_number <", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberLessThanOrEqualTo(Integer value) {
            addCriterion("buy_number <=", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberIn(List<Integer> values) {
            addCriterion("buy_number in", values, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberNotIn(List<Integer> values) {
            addCriterion("buy_number not in", values, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberBetween(Integer value1, Integer value2) {
            addCriterion("buy_number between", value1, value2, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("buy_number not between", value1, value2, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andProductScoreIsNull() {
            addCriterion("product_score is null");
            return (Criteria) this;
        }

        public Criteria andProductScoreIsNotNull() {
            addCriterion("product_score is not null");
            return (Criteria) this;
        }

        public Criteria andProductScoreEqualTo(Integer value) {
            addCriterion("product_score =", value, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreNotEqualTo(Integer value) {
            addCriterion("product_score <>", value, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreGreaterThan(Integer value) {
            addCriterion("product_score >", value, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_score >=", value, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreLessThan(Integer value) {
            addCriterion("product_score <", value, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreLessThanOrEqualTo(Integer value) {
            addCriterion("product_score <=", value, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreIn(List<Integer> values) {
            addCriterion("product_score in", values, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreNotIn(List<Integer> values) {
            addCriterion("product_score not in", values, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreBetween(Integer value1, Integer value2) {
            addCriterion("product_score between", value1, value2, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("product_score not between", value1, value2, "productScore");
            return (Criteria) this;
        }

        public Criteria andProductAmountIsNull() {
            addCriterion("product_amount is null");
            return (Criteria) this;
        }

        public Criteria andProductAmountIsNotNull() {
            addCriterion("product_amount is not null");
            return (Criteria) this;
        }

        public Criteria andProductAmountEqualTo(Long value) {
            addCriterion("product_amount =", value, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountNotEqualTo(Long value) {
            addCriterion("product_amount <>", value, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountGreaterThan(Long value) {
            addCriterion("product_amount >", value, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("product_amount >=", value, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountLessThan(Long value) {
            addCriterion("product_amount <", value, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountLessThanOrEqualTo(Long value) {
            addCriterion("product_amount <=", value, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountIn(List<Long> values) {
            addCriterion("product_amount in", values, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountNotIn(List<Long> values) {
            addCriterion("product_amount not in", values, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountBetween(Long value1, Long value2) {
            addCriterion("product_amount between", value1, value2, "productAmount");
            return (Criteria) this;
        }

        public Criteria andProductAmountNotBetween(Long value1, Long value2) {
            addCriterion("product_amount not between", value1, value2, "productAmount");
            return (Criteria) this;
        }

        public Criteria andCommentStatusIsNull() {
            addCriterion("comment_status is null");
            return (Criteria) this;
        }

        public Criteria andCommentStatusIsNotNull() {
            addCriterion("comment_status is not null");
            return (Criteria) this;
        }

        public Criteria andCommentStatusEqualTo(Byte value) {
            addCriterion("comment_status =", value, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusNotEqualTo(Byte value) {
            addCriterion("comment_status <>", value, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusGreaterThan(Byte value) {
            addCriterion("comment_status >", value, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("comment_status >=", value, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusLessThan(Byte value) {
            addCriterion("comment_status <", value, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusLessThanOrEqualTo(Byte value) {
            addCriterion("comment_status <=", value, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusIn(List<Byte> values) {
            addCriterion("comment_status in", values, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusNotIn(List<Byte> values) {
            addCriterion("comment_status not in", values, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusBetween(Byte value1, Byte value2) {
            addCriterion("comment_status between", value1, value2, "commentStatus");
            return (Criteria) this;
        }

        public Criteria andCommentStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("comment_status not between", value1, value2, "commentStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}